package icu.ac.kr.phonebook.provider;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;

import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import android.provider.BaseColumns;

public class ConstantProvider {

	public static String AUTHORITY ="icu.ac.kr.secretdairy";
	public static Uri TOTALSCHEDULE_URI = Uri.parse("content://"+AUTHORITY+"/schedule");
	public static Uri MONTHMODE_URI = Uri.parse("content://"+AUTHORITY+"/monthmode");
	
	public interface diary extends BaseColumns{
		
		public static final String YEAR = "year";
		public static final String MONTH = "month";
		public static final String DATE = "date";
		public static final String HOUR = "hour";
		public static final String TYPE = "type";
		public static final String COMMENT = "comment";
		public static final String MODE = "mode";
		
	}
	
	public interface diary_security extends BaseColumns{
		
		public static final String YEAR = "year";
		public static final String MONTH = "month";
		public static final String DATE = "date";
		public static final String MODE = "mode";
		
	}
	
	
	static final HashMap<Integer, String> months = new HashMap<Integer, String>();
	static{
		months.put(new Integer(1), "January ");
		months.put(new Integer(2), "February ");
		months.put(new Integer(3), "March ");
		months.put(new Integer(4), "April ");
		months.put(new Integer(5), "May ");
		months.put(new Integer(6), "June ");
		months.put(new Integer(7), "July ");
		months.put(new Integer(8), "August ");
		months.put(new Integer(9), "September ");
		months.put(new Integer(10), "October ");
		months.put(new Integer(11), "November ");
		months.put(new Integer(12), "December ");
	}
	
	public static String getMonth(int month)
	{
		return months.get(month);
	}
	
	public static String getHour(int hour){
	
		String converted_hour = (hour > 12) ?  (hour-12)+"PM" : (hour+"AM");	
		
		return converted_hour;
	}
	
	
	public static final int PRIVATE = 0;
	public static final int PUBLIC = 32;
	public static final int COUPLE = 64;
	public static final int SHARE =  96;
	public static final int MODEMASK =  96;
	public static final int DATEMASK = 31;
	public static final int HOURMASK = 31;
}
		
		
		
		
		
  
